<template>
  <el-card class="app-page">
    <super-form
      size="small"
      form-ref="formDemo"
      :inline="true"
      :model="formData"
      :render-form-item="render"
      :form-buttons="formButtons"
    />
  </el-card>
</template>

<script>
import SuperForm from '@/components/SuperForm'

export default {
  name: 'Resource',
  components: { SuperForm },
  data() {
    return {
      formData: {},
      formButtons: {
        submitCallback: (values) => console.log(values),
        resetCallback: (values) => console.log(values)
      },
      render: [
        {
          type: 'input',
          label: '类型',
          prop: 'type'
        },
        {
          type: 'select',
          label: '上级',
          prop: 'shangji'
        },
        {
          type: 'date',
          label: '开始时间',
          prop: 'startDate'
        },
        {
          type: 'date',
          label: '结束时间',
          prop: 'endDate'
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
